package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.List;

/**
 * @title: ApprovalEntity
 * @Author xiao
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@ApiModel("审批实体类")
public class ApprovalEntity extends BaseEntity {

    /**
     * 审批主键
     */
    @ApiModelProperty(value = "审批主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;
    /**
     * 审批类型
     */
    @ApiModelProperty(value = "审批类型")
    private String approvalType;
    /**
     * 审批编码
     */
    @ApiModelProperty(value = "审批编码")
    private String approvalCode;
    /**
     * 申请人id
     */
    @ApiModelProperty(value = "申请人id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long applyUserId;
    /**
     * 申请人姓名
     */
    @ApiModelProperty(value = "申请人姓名")
    private String applyName;
    /**
     * 申请部门
     */
    @ApiModelProperty(value = "申请部门")
    private String applyDeptCode;
    /**
     * 审批人id
     */
    @ApiModelProperty(value = "审批人id")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long approvalUserId;
    /**
     * 审批部门
     */
    @ApiModelProperty(value = "审批部门")
    private String approvalDeptCode;
    /**
     * 审批内容或意见
     */
    @ApiModelProperty(value = "审批意见")
    private String approvalOpinion;
    /**
     * 审批状态
     */
    @ApiModelProperty(value = "审批状态（ing审批中 pass审批通过 reject审批未通过）")
    private String approvalState;
    /**
     * 审批任务
     */
    @ApiModelProperty(value = "审批任务")
    private String approvalTask;
    /**
     * 审核意见
     */
    @ApiModelProperty(value = "审核意见：1同意 0拒绝")
    private Integer agree;
    /**
     * 新增审核人集合
     */
    @ApiModelProperty(value = "新增审核人集合")
    private List<String> userIds;

}
